package com.pinda.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.pinda.base.entity.PdGoodsType;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import com.pinda.base.entity.PdTruckAndGoods;

import java.util.List;

/**
 * <p>
 * 货物类型表 Mapper 接口
 * </p>
 *
 * @author lc
 * @since 2023-06-14
 */
public interface PdGoodsTypeMapper extends BaseMapper<PdGoodsType> {

    List findTruckAndGoods(PdTruckAndGoods search);

    int addTruckerAndGoods(PdTruckAndGoods pdTruckerAndGoods);


    void addTruckerAndGoodsType(PdTruckAndGoods pdTruckerAndGoods);

    void updateTruckAndGoods(PdTruckAndGoods pdTruckerAndGoods);

    void updateTruckAndGoodsType(PdTruckAndGoods pdTruckerAndGoods);

    void removeTruckAndGoods(int id);

    void removeTruckAndGoodsType(String dname);
    List<PdGoodsType> findByPage(Page<PdGoodsType> page,
                                 @Param("name")String name,
                                 @Param("truckTypeId")String truckTypeId,
                                 @Param("truckTypeName")String truckTypeName);
}
